﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace sy4_8
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
            this.Text = "程序3 - 计算器";
        }

        private void Form4_Load(object sender, EventArgs e)
        {
            Label label = new Label();
            label.Text = "这是程序3 - 计算器";
            label.Font = new Font("微软雅黑", 14);
            label.AutoSize = true;
            label.Location = new Point(50, 50);
            this.Controls.Add(label);

            Button button = new Button();
            button.Text = "计算";
            button.Location = new Point(50, 100);
            button.Size = new Size(100, 30);
            this.Controls.Add(button);
        }
    }
}